package com.googlecode.attention.shell.commands;
///*-
// * List.java
// *
// * $LastChangedBy:  $
// * $LastChangedRevision:  $
// * $LastChangedDate:  $
// * $HeadURL: $
// *
// * Copyright (c) 2008, Stein Gunnar Bakkeby
// * All rights reserved.
// * Redistribution and use in source and binary forms, with or without
// * modification, are permitted provided that the following conditions are met:
// *
// *     * Redistributions of source code must retain the above copyright
// *       notice, this list of conditions and the following disclaimer.
// *     * Redistributions in binary form must reproduce the above copyright
// *       notice, this list of conditions and the following disclaimer in the
// *       documentation and/or other materials provided with the distribution.
// *     * Neither the name of Stein Gunnar Bakkeby nor the names of its
// *       contributors may be used to endorse or promote products derived
// *       from this software without specific prior written permission.
// *
// * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND ANY
// * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
// * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
// * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// */
//package com.googlecode.attention.shell.commands;
//
//import java.util.ArrayList;
//import java.util.ResourceBundle;
//import java.util.concurrent.ArrayBlockingQueue;
//import java.util.concurrent.BlockingQueue;
//
//import com.googlecode.attention.at.AtCommand;
//import com.googlecode.attention.at.AtListener;
//
//
//public class List implements Command, AtListener {
//
//  private String LIST;
//  private BlockingQueue<AtCommand> feedback
//      = new ArrayBlockingQueue<AtCommand>(16);
//  private String PORTS;
//  private String SERIAL;
//  private String PARALLEL;
//  private String SAVE_OPERATOR;
//  private String AS_OPERATOR;
//  
//  /**
//   * Constructor, creates the GET command.
//   * 
//   * @param resources The resource bundle that contains the textual information
//   *                  for this command
//   */
//  public List(final ResourceBundle resources) {
//    this.LIST = resources.getString("list_command");
//    this.PORTS = resources.getString("list_ports_parameter");
//    this.SERIAL = resources.getString("list_serial_parameter");
//    this.PARALLEL = resources.getString("list_parallel_parameter");
//    this.AS_OPERATOR = resources.getString("get_as_operator");
//    this.SAVE_OPERATOR = resources.getString("get_save_to_operator");
//  }
//  
//  public String getCommand() {
//    return LIST;
//  }
//
//  public String parse(String input) {
//    final String[] parameters = input.toUpperCase().split(" ");
//    ArrayList<?> item = null;
//    boolean expectingVariableName = false;
//    boolean expectingFileName = false;
//    for (final String param : parameters) {
//      if (param.equals(LIST) || param.equals("")) continue;
//      //if (param.equals(MESSAGES_PARAMETER) || param.equals(PDUS_PARAMETER)) {
//    }
//    return null;
//  }
//
//  public void atFailure(AtCommand command) {
//    // TODO Auto-generated method stub
//
//  }
//
//  public void atSuccess(AtCommand command) {
//    // TODO Auto-generated method stub
//
//  }
//
//}
